/**
 * \brief Dispatcher
 *
 *
 *
 */
// Server einbinden
#include "TCPServer.cpp"
// Ein/Ausgabe
#include <iostream>
#include <vector>

using namespace std;

int main(){

	cout<<"Dispatcher - Server "<<endl;

	TCPServer* server= new TCPServer();

	if(server->start()==0){

		cout<<"Dispatcher - Server started"<<endl;
		cout<<"Dispatcher - Server Wait4Clients"<<endl;
		server->wait4Clients();
		cout<<"Dispatcher - Exit "<<endl;
	}
	else {
		cout<<"There was any kind of error, please try again"<<endl; 
		// "aussagekräftige" Fehlermeldung
	}
	return 0;
}


